package org.opens.factory.lottery.impl;

import cn.hutool.db.PageResult;
import lombok.extern.slf4j.Slf4j;
import org.opens.entity.LotteryHistory;
import org.opens.entity.LotteryTicket;
import org.opens.entity.vo.WinningInfo;
import org.opens.factory.lottery.LotteryApi;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Slf4j
@Component
public class EmptyLotteryApiImpl implements LotteryApi {

    @Override
    public LotteryHistory resultQuery(String type, String numOfPeriods) {
        log.warn("配置了空的彩票api接口, 将会导致无法从互联网同步数据");
        return null;
    }

    @Override
    public PageResult<LotteryHistory> historyQuery(String type, int pageSize, int pageNumber) {
        log.warn("配置了空的彩票api接口, 将会导致无法从互联网同步数据");
        return null;
    }

    @Override
    public Map<LotteryTicket, WinningInfo> decideIfWinTheLottery(List<LotteryTicket> lotteryTickets) {
        log.warn("配置了空的彩票api接口, 将会导致无法从互联网同步数据");
        return null;
    }
}
